How to get the distinct values in a column as well as total count using spring jpa pagination